package com.zhn.evsi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhn.evsi.domain.dto.System.SysUserDTO;
import com.zhn.evsi.domain.dto.System.SysUserInfoEditDTO;
import com.zhn.evsi.domain.entity.System.SysUser;
import io.swagger.models.auth.In;
import org.springframework.web.multipart.MultipartFile;


public interface ISysUserService extends IService<SysUser> {

    /**
     * 发送验证码
     * */
    void register(SysUserDTO sysUserDTO);

    /**
     * 校验验证码
     * */
    void codeActivation(SysUserDTO sysUserDTO);

    /**
     * 用户头像上传
     * */
    String uploadAvatar(MultipartFile file, Integer state);

    /**
     * 登录
     * */
    void login(SysUserDTO sysUserDTO);

    /**
     * 角色切换
     * */
    void handoff(Integer characterId);

    /**
     * 退出账号或关闭网站
     * */
    void logout(Integer characterId);

    /**
     * 修改用户信息
     * */
    Boolean editUserInfo(SysUserInfoEditDTO sysUserInfoEditDTO);
}
